package org.alis.ap.rpc.codec.json;

import com.alibaba.fastjson.JSON;
import org.alis.ap.rpc.codec.Decoder;
import java.lang.reflect.Type;


/**
 * JSONDecoder desc:
 *
 * @author luochuan
 * @date 2020/10/16 16:14
 */
public class JSONDecoder<T> implements Decoder<T> {
    @Override
    public T decode(byte[] bytes, Type type) {
        return JSON.parseObject(bytes,type);
    }
}
